Don't try to modify readonly strings
authorMatthias Clasen <mclasen@redhat.com>
Wed, 9 Feb 2011 22:32:05 +0000 (17:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 9 Feb 2011 22:32:05 +0000 (17:32 -0500)
commit3f1c95de8d411b956c6e51aa3bcc9baed1ab4558
treecca5c4440fe024c1d630d6fa23fdb9e4e188d8e0
parent981cadb578a0f60e941b2ed942c5f9df5d1faa58
Don't try to modify readonly strings

This was an oversight in the recent accel label improvement.
When we get an untranslated string back from gettext(), it is
not ok to replace '_' by ' ' in-place. Instead, do it while
appending to the GString.
https://bugzilla.gnome.org/show_bug.cgi?id=641912
gtk/gtkaccellabel.c